import { DashboardBreadcrumb } from "./dashboard";

const breadcrumbList = [DashboardBreadcrumb, { name: "权限管理" }];

const User = () => import(/* webpackChunkName: "User" */ "@/views/permission/user/user.vue");
const Role = () => import(/* webpackChunkName: "Role" */ "@/views/permission/role/role.vue");

const permissionRoutes = [
  {
    path: "/user",
    name: "User",
    component: User,
    meta: {
      title: "用户",
      isKeepAlive: true,
      breadcrumbList: [...breadcrumbList, { name: "用户" }],
      icon: "icon-yonghu",
    },
  },

  {
    path: "/role",
    name: "Role",
    component: Role,
    meta: {
      title: "角色",
      isKeepAlive: true,
      breadcrumbList: [...breadcrumbList, { name: "角色" }],
      icon: "icon-jiaoseliebiao",
    },
  },
];

export default permissionRoutes;
